<div>
    <form class="form-horizontal bv-form"  role="form"  id="updateForm">
        <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">团队名称</label>
                <div class="col-sm-5">
                    <input type="text"  class="form-control" id="team_name" name="team_name">
                </div>
            </div>
            <!--<div class="form-group">-->
                <!--<label class="col-sm-3 control-label">是否属于平台团队</label>-->
                <!--<div class="col-sm-5">-->
                    <!--<input type="radio"  name="is_team"  value="2">不属于-->
                    <!--<input type="radio"  name="is_team"  value="1">属于-->

                <!--</div>-->
            <!--</div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label yl">团队图像</label>
                <div class="col-sm-5">
                    <a href="javascript:;" class="fileImg">选择文件
                        <input type="file" name="fileImg" id="file2" onchange="bbbb(this);">
                    </a>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label ">预览图片</label>
                <div class="col-sm-3 file1_1" id="androimg_file" style="float:left">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">团队ID</label>
                <div class="col-sm-5">
                    <input type="text"  class="form-control" id="team_number" name="team_number">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">团队负责人</label>
                <div class="col-sm-5">
                    <!--<input type="text"  class="form-control" id="user_id" name="user_id">-->
                    <select id="user_id" name="user_id">
                        {volist name="res" id="vo"}
                        <option value="{$vo.user_id}">{$vo.user_username}({$vo.user_phone})</option>
                        {/volist}
                    </select>

                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">职能说明</label>
                <div class="col-sm-5">
                    <textarea class="form-control" rows="5" id="team_explain" name="team_explain"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">企业名称</label>
                <div class="col-sm-5">
                    <input type="text"  class="form-control" id="co_name" name="co_name">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label yl">上传营业执照</label>
                <div class="col-sm-5">
                    <a href="javascript:;" class="fileImg">选择文件
                        <input type="file" name="Img" id="file_2" onchange="aaaa(this);">
                    </a>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label ">预览图片</label>
                <div class="col-sm-3 file1_1" id="androimg_file2" style="float:left">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">统一信用代码</label>
                <div class="col-sm-5">
                    <input type="text"  class="form-control co_code" id="co_code" name="co_code">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">详细地址</label>
                <div class="col-sm-5">
                    <input type="text"  class="form-control" id="co_address" name="co_address">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">法定代表人</label>
                <div class="col-sm-5">
                    <input type="text"  class="form-control" id="co_people" name="co_people">
                </div>
            </div>
        </fieldset>
    </form>

</div>
<script>
    $("#team_number").on("keyup",function(){
        this.value = this.value.replace(/[^0-9]/g,'');
        if(this.value<1){this.value='';}
    });
</script>
<script>
    $(function(){
        $('select').searchableSelect();
    });
</script>

<script type="text/javascript">
    function bbbb(file) {
        var prevDiv = document.getElementById('androimg_file');
        if (file.files && file.files[0]) {
            var reader = new FileReader();
            reader.onload = function(evt){
                prevDiv.innerHTML = '<img src="' + evt.target.result + '" height="150" width="150"/>';
            }
            reader.readAsDataURL(file.files[0]);
        } else {
            prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>';
        }
    }

    function aaaa(file) {
        var prevDiv = document.getElementById('androimg_file2');
        if (file.files && file.files[0]) {
            var reader = new FileReader();
            reader.onload = function(evt){
                prevDiv.innerHTML = '<img src="' + evt.target.result + '" height="150" width="150"/>';
            }
            reader.readAsDataURL(file.files[0]);
        } else {
            prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>';
        }
    }
</script>




